package com.dianping.cat.consumer.problem.model.entity;

import com.dianping.cat.consumer.problem.model.BaseEntity;
import com.dianping.cat.consumer.problem.model.IVisitor;
import java.util.ArrayList;
import java.util.List;





public class Segment
  extends BaseEntity<Segment>
{
  private Integer m_id;
  private int m_count;
/* 17 */   private List<String> m_messages = new ArrayList();





/* 23 */   public Segment(Integer id) { this.m_id = id; }




/* 28 */   public void accept(IVisitor visitor) { visitor.visitSegment(this); }


  public Segment addMessage(String message) {
/* 32 */     this.m_messages.add(message);
/* 33 */     return this;
  }


  public boolean equals(Object obj) {
/* 38 */     if (obj instanceof Segment) {
/* 39 */       Segment _o = (Segment)obj;

/* 41 */       if (!equals(getId(), _o.getId())) {
/* 42 */         return false;
      }

/* 45 */       return true;
    }

/* 48 */     return false;
  }


/* 52 */   public int getCount() { return this.m_count; }



/* 56 */   public Integer getId() { return this.m_id; }



/* 60 */   public List<String> getMessages() { return this.m_messages; }





  public Segment incCount() {
/* 73 */     this.m_count++;
/* 74 */     return this;
  }

  public Segment incCount(int count) {
/* 78 */     this.m_count += count;
/* 79 */     return this;
  }


  public void mergeAttributes(Segment other) {
/* 84 */     assertAttributeEquals(other, "segment", "id", this.m_id, other.getId());

/* 86 */     this.m_count = other.getCount();
  }

  public Segment setCount(int count) {
/* 90 */     this.m_count = count;
/* 91 */     return this;
  }

  public Segment setId(Integer id) {
/* 95 */     this.m_id = id;
/* 96 */     return this;
  }

  public Segment() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/problem/model/entity/Segment.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */